// 基础路由
const baseRouter = [
  {
    path: "/home",
    component: (resolve) => require(["@/views/dashboard"], resolve),
    name: "home",
    redirect: "/userhome",
    meta: {
      title: "home",
      icon: "icon-ym icon-ym-nav-home",
      affix: false,
      zhTitle: "首页",
    },
  },

  {
    path: "/dashboard",
    component: (resolve) => require(["@/views/basic/dashboard"], resolve),
    name: "dashboard",
    redirect: "/userhome",
    meta: {
      title: "dashboard",
      icon: "icon-ym icon-ym-generator-kanban",
      affix: false,
      zhTitle: "门户展示",
    },
  },
  {
    path: "/userhome",
    component: (resolve) => require(["@/views/userhome"], resolve),
    name: "userhome",
    meta: {
      title: "userhome",
      icon: "icon-ym icon-ym-generator-kanban",
      affix: false,
      zhTitle: "用户首页",
    },
  },
  {
    path: "/messageRecord",
    component: (resolve) => require(["@/views/basic/messageRecord"], resolve),
    name: "messageRecord",
    meta: {
      title: "messageRecord",
      affix: false,
      zhTitle: "消息中心",
      icon: "icon-ym icon-ym-sysNotice",
    },
  },
  {
    path: "/previewModel",
    component: (resolve) => require(["@/views/basic/dynamicModel"], resolve),
    name: "previewModel",
    meta: {
      title: "previewModel",
      affix: false,
      zhTitle: "功能预览",
      icon: "icon-ym icon-ym-btn-preview",
    },
  },
  {
    path: "/profile",
    component: (resolve) => require(["@/views/basic/profile"], resolve),
    name: "profile",
    meta: {
      title: "profile",
      affix: false,
      zhTitle: "个人信息",
      icon: "icon-ym icon-ym-user",
    },
  },
  {
    path: "/emailDetail",
    component: (resolve) =>
      require(["@/views/extend/email/DetailPage"], resolve),
    name: "emailDetail",
    meta: {
      title: "emailDetail",
      affix: false,
      zhTitle: "查看邮件",
      icon: "icon-ym icon-ym-emailExample",
    },
  },
  {
    path: "/workFlowDetail",
    component: (resolve) =>
      require(["@/views/workFlow/workFlowDetail"], resolve),
    name: "workFlowDetail",
    meta: {
      title: "workFlowDetail",
      affix: false,
      zhTitle: "流程详情",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/course/detail",
    component: (resolve) => require(["@/views/course/detail"], resolve),
    name: "coursedetail",
    meta: {
      title: "",
      affix: false,
      zhTitle: "课程详情",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/examWeb/index",
    component: (resolve) => require(["@/views/exam-web/index"], resolve),
    name: "cexamwebIndex",
    meta: {
      title: "",
      affix: false,
      zhTitle: "考试详情",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/testAdd/index",
    component: (resolve) => require(["@/views/test/testAdd.vue"], resolve),
    name: "testAdd",
    meta: {
      title: "",
      affix: false,
      zhTitle: "新增试卷",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/zice/index",
    component: (resolve) => require(["@/views/myTrain/zice.vue"], resolve),
    name: "ziceIndex",
    meta: {
      title: "",
      affix: false,
      zhTitle: "自测考试",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/zicexz/index",
    component: (resolve) => require(["@/views/myTrain/zcxz.vue"], resolve),
    name: "zicexz",
    meta: {
      title: "",
      affix: false,
      zhTitle: "自测选择",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/zicetk/index",
    component: (resolve) => require(["@/views/myTrain/zctk.vue"], resolve),
    name: "zicetk",
    meta: {
      title: "",
      affix: false,
      zhTitle: "自测填空",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/zicewd/index",
    component: (resolve) => require(["@/views/myTrain/zcwd.vue"], resolve),
    name: "zicewd",
    meta: {
      title: "",
      affix: false,
      zhTitle: "自测问答",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/zicesp/index",
    component: (resolve) => require(["@/views/myTrain/zcsp.vue"], resolve),
    name: "zicesp",
    meta: {
      title: "",
      affix: false,
      zhTitle: "自测视频",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/ExComp/index",
    component: (resolve) => require(["@/views/myTrain/ExComp.vue"], resolve),
    name: "ExComp",
    meta: {
      title: "",
      affix: false,
      zhTitle: "考试完成",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/userManagemntEdit/index",
    component: (resolve) =>
      require(["@/views/userManagement/edit.vue"], resolve),
    name: "userManagemntEdit",
    meta: {
      title: "",
      affix: false,
      zhTitle: "编辑",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/dataCenterCreate/index",
    component: (resolve) =>
      require(["@/views/dataCenter/dataCenterCreate.vue"], resolve),
    name: "dataCenterCreate",
    meta: {
      title: "",
      affix: false,
      zhTitle: "新建",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
  {
    path: "/dataCenterEdit/index",
    component: (resolve) =>
      require(["@/views/dataCenter/dataCenterEdit.vue"], resolve),
    name: "dataCenterEdit",
    meta: {
      title: "",
      affix: false,
      zhTitle: "编辑",
      icon: "icon-ym icon-ym-workFlow",
    },
  },
];
export default baseRouter;
